package com.neusoft.license.common.res;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: xlh
 * @Description: 统一异常返回对象
 * @Date: Create in 16:16 2020/8/6 0006
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ErrorRestResponse<T> {

    private Integer code;

    private String msg;

    public ErrorRestResponse error(Integer code , String message) {
        return new ErrorRestResponse(code, message);
    }
}
